package com.study.d7_otherstream;

import java.io.DataInputStream;
import java.io.FileInputStream;

public class DataDemo2 {
    public static void main(String[] args) {
        try(
        DataInputStream dis = new DataInputStream(new FileInputStream("day10/src/data.txt"));
        ){
            byte b = dis.readByte();
            System.out.println(b);
            boolean c = dis.readBoolean();
            System.out.println(c);
            int d = dis.readInt();
            System.out.println(d);
            char e = dis.readChar();
            System.out.println(e);
            String s = dis.readUTF();
            System.out.println(s);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
